Carlos Garnacho [Mon, 3 Sep 2012 15:03:52 +0000 (17:03 +0200)]
Improve CSS styling of touch text selection handles
Don't hook on the widget style context and set up instead
a widget path for itself. Also use a common style class
for both handles, with an extra top/bottom class for each
handle.
Daniel Mustieles [Mon, 3 Sep 2012 14:07:06 +0000 (16:07 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 3 Sep 2012 13:59:53 +0000 (15:59 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 3 Sep 2012 13:59:43 +0000 (15:59 +0200)]
Updated Spanish translation
Piotr Drąg [Mon, 3 Sep 2012 13:58:59 +0000 (15:58 +0200)]
Updated Polish translation
Piotr Drąg [Mon, 3 Sep 2012 13:51:38 +0000 (15:51 +0200)]
Updated POTFILES.in
Benjamin Otte [Mon, 3 Sep 2012 10:52:49 +0000 (12:52 +0200)]
cssvalue: Implement transitioning arrays
Or rather: Implement it for backgrounds, as the animation rules for
arrays vary by property.
Benjamin Otte [Thu, 30 Aug 2012 13:51:29 +0000 (15:51 +0200)]
cssvalue: Pass property ID to transition function
This is to allow animating arrays properly. I'm not really thrilled
about this solution (we leak propertys into the values again...), but
it's the best I can come up with - I prefer it to having N different
array types...
Benjamin Otte [Wed, 29 Aug 2012 10:37:16 +0000 (12:37 +0200)]
cssvalue: Don't allow empty arrays anymore
CSS arrays aren't empty, even the ones that appear empty contain one
"none" element.
Benjamin Otte [Wed, 29 Aug 2012 10:30:33 +0000 (12:30 +0200)]
cssvalue: Make the array parser no longer parse "none"
Arrays that support it, handle it themselves.
Benjamin Otte [Tue, 28 Aug 2012 15:52:12 +0000 (17:52 +0200)]
css: Redo bindings parsing
I want to get away from the ability to have 0-length arrays, all css
arrays are single element.
Even if the element is "none", it is still a "none" element.
Claudio Saavedra [Mon, 3 Sep 2012 07:59:23 +0000 (10:59 +0300)]
gtkliststore: fix documentation typo
Matthias Clasen [Mon, 3 Sep 2012 03:11:15 +0000 (23:11 -0400)]
Add a way to test touch features
The GTK_TEST_TOUCHSCREEN envvar is now checked in entries
and textviews to allow testing of text handles with other
kinds of devices.
Carlos Garnacho [Wed, 11 Jul 2012 14:43:51 +0000 (16:43 +0200)]
Implement touch text selection in GtkTextView
GtkTextHandle is used to indicate both the cursor position
and the selection bound, dragging the handles will modify
the selection and scroll if necessary.
Backwards text selection is also blocked for touch devices,
so the handles don't get inverted positions and possibly
obscure portions of the selected text.
Carlos Garnacho [Wed, 11 Jul 2012 13:55:00 +0000 (15:55 +0200)]
Implement touch text selection in GtkEntry
GtkTextHandle is used to indicate both the cursor position
and the selection bound, dragging the handles will modify
the selection and scroll if necessary.
Backwards text selection is also blocked for touch devices,
so the handles don't get inverted positions (This is more
important though on GtkTextView, as inverted handles may
obscure portions of the selected text, good for consistence
though)
Carlos Garnacho [Wed, 11 Jul 2012 13:51:43 +0000 (15:51 +0200)]
Add GtkTextHandle
This is a helper object to allow text widgets to implement
text selection on touch devices. It allows for both cursor
placement and text selection, displaying draggable handles
on/around the cursor and selection bound positions.
Currently, this is private to GTK+, and only available to
GtkEntry and GtkTextView.
Carlos Garnacho [Wed, 11 Jul 2012 14:44:16 +0000 (16:44 +0200)]
scrolledwindow: don't capture events meant for non-child windows
GtkTextHandle creates temporary override redirect windows, but still
hook to the text widget for events, so those are effectively captured
by GtkScrolledWindow if a text widget is within it
Aurimas Černius [Sun, 2 Sep 2012 12:41:45 +0000 (15:41 +0300)]
Updated Lithuanian translation
A S Alam [Sun, 2 Sep 2012 04:50:22 +0000 (10:20 +0530)]
update Punjabi Translation for gtk module
Matthias Clasen [Sun, 2 Sep 2012 02:51:18 +0000 (22:51 -0400)]
Try harder to discriminate Shift-F10 and F10
A change in xkeyboard-config 2.4.1 made it so that function keys
now have a shift level which has the same symbol, but 'eats' the
shift modifier. This would ordinarily make it impossible for us
to discriminate between these key combinations.
This commit tries harder to discriminate in 2 ways:
- XKB has a mechanism to tell us when a modifier should not be
consumed even though it was used in determining the level.
We now respect such 'preserved' modifiers. This does not fix
the Shift-F10 vs F10 problem yet, since xkeyboard-config does
not currently mark Shift as preserved for function keys.
- Don't consume modifiers that do not change the symbol. For
the function keys, the symbol on the shift level is the same
as the base level, so we don't consider Shift consumed.
For more background on the xkeyboard-config change, see
https://bugs.freedesktop.org/show_bug.cgi?id=45008
https://bugzilla.gnome.org/show_bug.cgi?id=661973
Rūdolfs Mazurs [Sat, 1 Sep 2012 21:33:15 +0000 (00:33 +0300)]
:qUpdated Latvian translation
Piotr Drąg [Sat, 1 Sep 2012 19:03:42 +0000 (21:03 +0200)]
Updated Polish translation
Piotr Drąg [Sat, 1 Sep 2012 17:36:35 +0000 (19:36 +0200)]
Updated Polish translation
Also restore missing copyrights.
Fran Diéguez [Sat, 1 Sep 2012 09:43:32 +0000 (11:43 +0200)]
Updated Galician translations
Kjartan Maraas [Sat, 1 Sep 2012 08:43:02 +0000 (10:43 +0200)]
Updated Norwegian bokmål translation
Nguyễn Thái Ngọc Duy [Sat, 1 Sep 2012 06:09:03 +0000 (13:09 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 1 Sep 2012 06:08:27 +0000 (13:08 +0700)]
po/vi: import from Damned Lies
Matthias Clasen [Sat, 1 Sep 2012 03:10:30 +0000 (23:10 -0400)]
Revert "menubutton: make it work with custom content in .ui file"
This reverts commit
6e6487b461adf2628f49fc257a7a30a2346e5a25.
Matthias Clasen [Sat, 25 Aug 2012 03:32:41 +0000 (23:32 -0400)]
GtkMenuButton: Override add
By removing an existing child in add, if it is our own arrow,
we can make things work better in GtkBuilder.
https://bugzilla.gnome.org/show_bug.cgi?id=682291
David Zeuthen [Tue, 21 Aug 2012 16:49:02 +0000 (12:49 -0400)]
menubutton: make it work with custom content in .ui file
This was reported in bug 682291.
https://bugzilla.gnome.org/show_bug.cgi?id=682291
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
Rui Matos [Mon, 20 Aug 2012 23:28:25 +0000 (01:28 +0200)]
window: Add a delay before automatically showing mnemonics
Showing mnemonics immediately on modifier press can be annoying and
distracting when the user is just trying to Alt+Tab into another
application/window since the mnemonic will show up and quickly vanish
again when we receive the focus out event.
https://bugzilla.gnome.org/show_bug.cgi?id=672431
Matthias Clasen [Sat, 1 Sep 2012 02:45:18 +0000 (22:45 -0400)]
Fix positioning of file format radios
When the file name changes, the file format radios were dancing
around. This commit keeps them flush right.
Matthias Clasen [Sat, 1 Sep 2012 02:44:45 +0000 (22:44 -0400)]
Fix mnemonic activation for some printer option widgets
The file type radio group has a mnemonic on its label, but
activating it did not work, since GtkPrinterOptionWidget did
not know to forward the activation to one of the buttons.
Sebastian Geiger [Fri, 17 Aug 2012 23:04:22 +0000 (01:04 +0200)]
Improve print to file options in print dialog
* This patch gets rid of the separated
fields for selecting a print to file
target by removing the folder selection
button and the entry. It is replaced by
a browse button, which opens a file
selection dialog, that can select both
the path AND the filename.
* If the filename is relativ to the home
folder it will substitute ~/ instead of
the home folder. Additionally if the
resulting filename is longer than 30
characters, it cut of the first part
and replace it by '...' so that
the button text never gets too long.
https://bugzilla.gnome.org/show_bug.cgi?id=682129
Arash Mousavi [Fri, 31 Aug 2012 19:17:31 +0000 (23:47 +0430)]
l10n: Updated Persian translation
Matthias Clasen [Fri, 31 Aug 2012 18:46:07 +0000 (14:46 -0400)]
Allow setting Pango attributes on entries
This is useful to adjust the weight or scale of the text.
Fran Diéguez [Fri, 31 Aug 2012 19:06:05 +0000 (21:06 +0200)]
Updated Galician translations
Piotr Drąg [Fri, 31 Aug 2012 18:48:12 +0000 (20:48 +0200)]
Updated Polish translation
Sebastian Geiger [Fri, 31 Aug 2012 17:02:00 +0000 (12:02 -0500)]
[GtkFileChooserButton] bgo#645065 - Restore the previously-selected file when the button's GtkFileChooserDialog is canceled
The file chooser is asynchronous, so doing 'select_file (old_file)' and subsequently querying
the file for updating the labels is not going to work. However, the underlying file chooser
will emit 'selection-changed' as appropriate when it finishes restoring the old file. So,
we only need to update the labels when the file chooser dialog is confirmed, not cancelled.
Matthias Clasen [Fri, 31 Aug 2012 14:47:23 +0000 (10:47 -0400)]
Move entry completion code where it belongs
This commit moves all the entry completion implementation
into gtkentrycompletion.c. It also gets rid of an unnecessary
completion_device member in GtkEntryPrivate.
Matthias Clasen [Fri, 31 Aug 2012 02:14:23 +0000 (22:14 -0400)]
GtkEntry: pack GtkEntryPrivate a bit better
Erik van Pienbroek [Mon, 27 Aug 2012 20:18:29 +0000 (22:18 +0200)]
Also compile gtkdbusgenerated.c on non-UNIX environments
When compiling gtk on Win32 then the file gtkdbusgenerated.c also needs to be
compiled and linked into the gtk library as it's needed for GtkMountOperation
https://bugzilla.gnome.org/show_bug.cgi?id=682825
William Jon McCann [Wed, 29 Aug 2012 21:19:49 +0000 (17:19 -0400)]
Always make primary headings bold in message dialogs
Unless they have markup. But only use big text if there is
secondary text.
https://bugzilla.gnome.org/show_bug.cgi?id=683001
Baurzhan Muftakhidinov [Thu, 30 Aug 2012 17:04:39 +0000 (23:04 +0600)]
Updated Kazakh translation
Matthias Clasen [Wed, 29 Aug 2012 22:16:34 +0000 (18:16 -0400)]
Remove unintentional symbol export
Just a forgotten static.
Matthias Clasen [Wed, 29 Aug 2012 22:15:46 +0000 (18:15 -0400)]
Revert "gtk: Fix exports for new symbols"
This reverts commit
07b33586e2552faece4a404c01cffb340ab7fc62.
Rico Tzschichholz [Wed, 29 Aug 2012 06:17:36 +0000 (08:17 +0200)]
gtk: Fix exports for new symbols
Chun-wei Fan [Wed, 29 Aug 2012 04:19:56 +0000 (12:19 +0800)]
Update config.h.win32.in
Make the entries more in line with those given in the generated
config.h.in.
Fran Diéguez [Tue, 28 Aug 2012 22:08:53 +0000 (00:08 +0200)]
Updated Galician translations
Aurimas Černius [Tue, 28 Aug 2012 19:17:30 +0000 (22:17 +0300)]
Updated Lithuanian translation
Cosimo Cecchi [Tue, 28 Aug 2012 15:51:18 +0000 (11:51 -0400)]
scrolled-window: fix rendering of scrolled window background
- don't poke at the children's background pattern at draw time, but just
call gtk_render_background()
- we should propagate rendering of the background to the overshoot
window when the state flags or the style changes, or it won't respond
to e.g. focused/backdrop changes correctly
https://bugzilla.gnome.org/show_bug.cgi?id=682854
Benjamin Otte [Tue, 28 Aug 2012 13:30:23 +0000 (15:30 +0200)]
css: Remove unused macro
GTK_CSS_DEPENDS_ON_EVERYTHING was used as a placeholder when
implementing dependencies. Now that dependencies are completely
implemented, it's no longer necessary.
Benjamin Otte [Tue, 28 Aug 2012 13:29:56 +0000 (15:29 +0200)]
cssimage: Implement dependencies for images
Benjamin Otte [Mon, 27 Aug 2012 16:39:46 +0000 (18:39 +0200)]
cssvalue: Implement dependency tracking for gradients
Benjamin Otte [Mon, 27 Aug 2012 15:52:02 +0000 (17:52 +0200)]
cssvalue: Handle dependencies for typed values
Benjamin Otte [Mon, 27 Aug 2012 15:27:06 +0000 (17:27 +0200)]
css: Make color lookup handle dependencies
Matthias Clasen [Sat, 25 Aug 2012 15:22:14 +0000 (11:22 -0400)]
css: Handle some more simple cases of dependencies
Benjamin Otte [Fri, 24 Aug 2012 23:59:13 +0000 (01:59 +0200)]
cssvalue: First step of proper dependency tracking
Instead of using the EVERYTHING aka FIXME value for tdependencies,
actually compute the dependencies in a bunch of simple cases.
Benjamin Otte [Fri, 24 Aug 2012 16:17:52 +0000 (18:17 +0200)]
stylecontext: Update computed values when dependencies change
This fixes the longstanding bug where GTK would not update styles when
parent styles would change.
https://bugzilla.gnome.org/show_bug.cgi?id=672046
Benjamin Otte [Fri, 24 Aug 2012 16:17:07 +0000 (18:17 +0200)]
stylecontext: Refactor some code
This just changes the arguments passed to build_properties() and moves
that function around in the source file. No functional changes are
happening.
Benjamin Otte [Fri, 24 Aug 2012 15:31:57 +0000 (17:31 +0200)]
css: Pass relevant properties to css lookup code
This is not used yet in this patch.
Benjamin Otte [Fri, 24 Aug 2012 15:00:02 +0000 (17:00 +0200)]
computedvalues: Pass dependencies to set_value()
This simplifies the code.
Benjamin Otte [Fri, 24 Aug 2012 14:28:47 +0000 (16:28 +0200)]
stylecontext: Compute correct changes
... in the case where no change of the DOM tree actually happened.
We don't do anything yet with that information, this patch just
correctly computes it.
Benjamin Otte [Tue, 24 Jul 2012 14:22:06 +0000 (16:22 +0200)]
stylecontext: Split out a function for simplicity
Benjamin Otte [Mon, 23 Jul 2012 14:14:20 +0000 (16:14 +0200)]
cssomputedvalues: Track dependencies
We now track what values have dependencies on what other values so that
we could in theory recompute them when we need to.
Benjamin Otte [Wed, 18 Jul 2012 14:55:32 +0000 (16:55 +0200)]
stylecontext: Pass the changes in the parent to validation function
This way, inherited properties can be updated.
Benjamin Otte [Mon, 16 Jul 2012 12:48:43 +0000 (14:48 +0200)]
css: Introduce dependencies for value computations
When values are computed, they might depend on various other values and
we need to track this so we can update the values when those other
values change. This is the first step in making that happen.
This patch does not do any dependency tracking at all, instead it uses
GTK_CSS_DEPENDS_ON_EVERYTHING as a sort of FIXME.
Benjamin Otte [Tue, 17 Jul 2012 12:01:52 +0000 (14:01 +0200)]
css: Move computing of initial and inherit values
... to the compute vfunc. Simplifies code quite a bit. But makes the
code no longer a simple step-by-step implementation of the spec.
Benjamin Otte [Mon, 16 Jul 2012 12:28:58 +0000 (14:28 +0200)]
cssstyleproperty: Get rid of unused API
Both _gtk_css_style_property_print_value() and
_gtk_css_style_property_compute_value() aren't necessary anymore and are
replaced by _gtk_css_value_print() and _gtk_css_value_comptue()
respectively.
Benjamin Otte [Mon, 16 Jul 2012 12:15:19 +0000 (14:15 +0200)]
csscustomproperty: Move compute code to GtkCssTypedValue
This way, we don't need the print_value vfunc anymore.
Benjamin Otte [Mon, 16 Jul 2012 12:01:37 +0000 (14:01 +0200)]
cssstyleproperty: Don't set print or compute vfuncs anymore
Nobody does that these days.
Benjamin Otte [Mon, 16 Jul 2012 11:53:19 +0000 (13:53 +0200)]
cssstyleproperty: Remove all useless compute vfuncs
Now that we call _compute() by default, we don't need any special cases
anymore that do the same thing.
Benjamin Otte [Mon, 16 Jul 2012 11:47:04 +0000 (13:47 +0200)]
cssstyleproperty: Call _compute() in the compute function
... instead pof just reffing the value.
Benjamin Otte [Mon, 16 Jul 2012 11:42:18 +0000 (13:42 +0200)]
css: Move special case for 0px borders
This is in preparation for the next commits.
Benjamin Otte [Sat, 14 Jul 2012 18:24:46 +0000 (20:24 +0200)]
css: Fold color value computation into gtksymboliccolor.c
This gets rid of the public function
_gtk_css_rgba_value_compute_from_symbolic().
The fallback is now handled using a switch statement instead of letting
the caller pass the function.
Benjamin Otte [Thu, 12 Jul 2012 01:43:15 +0000 (03:43 +0200)]
css: Pass property_id to compute function
This is a reorganization of how value computing should be done.
Previously the GtkCssStyleProperty.compute vfunc was supposed to take
care of special cases when it needed those for computation. However,
this proved to be very complicated in cases where values were nested and
only the last value (of a common type) needed to be special cased.
A common example for this was the fallback handling for unresolvable
colors.
Now, we pass the property's ID along with all compute functions so we
can do the special casing where it's necessary.
Note that no actual changes happen in this commit. This will happen in
follow-ups.
Benjamin Otte [Wed, 11 Jul 2012 04:56:07 +0000 (06:56 +0200)]
css: Introduce _gtk_css_value_compute()
This commit is essentially a large reorganization. Instead of all value
subtypes having their own compute function, there is the general
_gtk_css_value_compute() function that then calls a vfunc on the
subtype.
Nilamdyuti Goswami [Mon, 27 Aug 2012 18:55:20 +0000 (00:25 +0530)]
Implemented FUEL entries to Assamese translation
Nilamdyuti Goswami [Mon, 27 Aug 2012 18:54:10 +0000 (00:24 +0530)]
Implemented FUEL entries to Assamese translation
Jiro Matsuzawa [Mon, 27 Aug 2012 15:03:02 +0000 (00:03 +0900)]
[l10n] Update Japanese translation
Kjartan Maraas [Mon, 27 Aug 2012 08:24:01 +0000 (10:24 +0200)]
Updated Norwegian bokmål translation
Adel Gadllah [Sun, 26 Aug 2012 22:48:43 +0000 (00:48 +0200)]
gkimmulticontext: Remove left over debug print
Remove the g_print debug statement from propagate_purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=682747
Tom Tryfonidis [Sun, 26 Aug 2012 20:05:07 +0000 (23:05 +0300)]
Updated Greek translations
Nilamdyuti Goswami [Sun, 26 Aug 2012 16:36:09 +0000 (22:06 +0530)]
Assamese translation updated
Nilamdyuti Goswami [Sun, 26 Aug 2012 16:29:27 +0000 (21:59 +0530)]
Assamese translation updated
William Jon McCann [Sun, 26 Aug 2012 14:52:08 +0000 (22:52 +0800)]
Fix a typo in the the comments
https://bugzilla.gnome.org/show_bug.cgi?id=682724
Piotr Drąg [Sun, 26 Aug 2012 12:52:56 +0000 (14:52 +0200)]
Updated Polish translation
Thomas Hindoe Paaboel Andersen [Sat, 25 Aug 2012 12:33:45 +0000 (14:33 +0200)]
Docs: GtkAspectFrame: use top/bottom for vertical alignment
Before left/right was used.
https://bugzilla.gnome.org/show_bug.cgi?id=682662
Timothy Arceri [Fri, 25 May 2012 03:12:36 +0000 (13:12 +1000)]
Use new printer setting to reduce code required by application
Updated demo to use new setting that allows an application to change the
output filename without the need to create the uri itself.
https://bugzilla.gnome.org/show_bug.cgi?id=676787
Matthias Clasen [Sat, 25 Aug 2012 19:40:50 +0000 (15:40 -0400)]
GtkIMMultcontext: Propagate input purpose and hints
The lack of this was pointed out by Carlos Garnacho in
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Carlos Garnacho [Fri, 24 Aug 2012 18:41:43 +0000 (20:41 +0200)]
Add GTK_INPUT_HINT_INHIBIT_OSK to GtkInputHints
This hint may be used in text widgets to inhibit their
input methods. The most compelling usecase is calculator
applications, which already have a builtin and better
suited onscreen keyboard.
https://bugzilla.gnome.org/show_bug.cgi?id=651244
Matthias Clasen [Sat, 25 Aug 2012 18:24:20 +0000 (14:24 -0400)]
Trivial: Fix a whitespace messup
Pointed out by Carlos Garnacho in bug 651244.
Daniel Mustieles [Sat, 25 Aug 2012 10:08:08 +0000 (12:08 +0200)]
Updated Spanish translation
Nguyễn Thái Ngọc Duy [Sat, 25 Aug 2012 04:19:37 +0000 (11:19 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 25 Aug 2012 04:17:02 +0000 (11:17 +0700)]
po/vi: import from Damned Lies
Piotr Drąg [Fri, 24 Aug 2012 22:29:48 +0000 (00:29 +0200)]
Updated Polish translation
William Jon McCann [Thu, 23 Aug 2012 16:04:23 +0000 (12:04 -0400)]
Improve the layout of the mount operation dialog
This improves the layout of the mount operations dialog to:
* Make primary labels bold in all cases
* Lay out the widgets in a grid
* Put space between the two radio groups to distinguish them
https://bugzilla.gnome.org/show_bug.cgi?id=682552
Daniel Mustieles [Thu, 23 Aug 2012 15:42:22 +0000 (17:42 +0200)]
Updated Spanish translation
Alexander Larsson [Thu, 23 Aug 2012 13:59:33 +0000 (15:59 +0200)]
Remove gdk_window_flush_if_exposing as its not needed anymore
We no longer support modifying GdkWindow hierarchies during
expose events. This is not working anymore anyway as the
flush operation now does not push already rendered pixels
in the flushed window from the double buffer to the window.
https://bugzilla.gnome.org/show_bug.cgi?id=679144
Alexander Larsson [Thu, 23 Aug 2012 13:51:13 +0000 (15:51 +0200)]
Fix flashing in non-double-buffered widgets
Avoid copying back partially drawn double-buffer data
when flushing to avoid flicker. This means non double
buffered widgets must draw opaque pixels in its expose
handlers, and that you are not allowed to use direct
rendering (or modify GdkWindow pos/size/order) from
inside the expose handler of a double buffered widget.
See https://bugzilla.gnome.org/show_bug.cgi?id=679144 for more
details